package Lab07.Q2;

interface Inter {
    void show();
}

class Outer {
    public static Inter show() {
        return new Inter() {
            public void show() {
                System.out.println("DuluDulu");
            }
        };
        //return () -> System.out.println("DuluDulu");
        //只用上面这一句lambda函数也可以
    }

    public static Inter method() {
        return show();
    }
}

public class Test {
    public static void main(String[] args) {
        Outer.method().show();
    }
}